/* =========================================
   リセットCSS & 基本設定
========================================= */

@charset "UTF-8";

:root {
  --main-color: #94549a;
  --back-color: #e8e8e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background-color: var(--back-color);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* =========================================
 全体ラッパー
========================================= */
.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================
 ヘッダー
========================================= */
header {
  background: var(--main-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

#headerWrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.headerTitle {
  flex: 1;
  line-height: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.headerTitle a {
  color: white;
}

/* =========================================
 グローバルナビゲーション
========================================= */
/* 元のテーマからグローバルナビゲーションのスタイルを移植 */

/* ハンバーガーメニュートリガー */
.btn-trigger {
  position: relative;
  cursor: pointer;
  width: 9%;
  height: 22px;
}

.btn-trigger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

.btn-trigger span:nth-of-type(1) {
  top: 0;
}

.btn-trigger span:nth-of-type(2) {
  top: 10px;
}

.btn-trigger span:nth-of-type(3) {
  bottom: 0px;
}

.btn-trigger,
.btn-trigger span {
  display: inline-block;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.btn-trigger.active span:nth-of-type(1) {
  -webkit-transform: translateY(10px) rotate(-45deg);
  transform: translateY(10px) rotate(-45deg);
}

.btn-trigger.active span:nth-of-type(2) {
  opacity: 0;
}

.btn-trigger.active span:nth-of-type(3) {
  -webkit-transform: translateY(-10px) rotate(45deg);
  transform: translateY(-10px) rotate(45deg);
}

/* ナビゲーションメニュー */
nav.nav {
  background-color: var(--main-color);
  position: fixed;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.5s, visibility 0.5s;
  transition: opacity 0.5s, visibility 0.5s;
  width: 100%;
  top: 51px;
}

nav.nav ul {
  list-style: none;
}
nav.nav li {
}

nav.nav li a {
  color: #fff;
  padding: 10px 5%;
  display: block;
}

nav.nav.active {
  opacity: 0.85;
  visibility: visible;
  width: 100%;
}

/* PC表示時はナビゲーションを非表示 */
@media screen and (min-width: 768px) {
  nav.nav,
  .btn-trigger {
    display: none;
  }

  /* 記事一覧ページ - PCレイアウト */
  .card {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .card .thumbnail {
    height: 250px;
  }

  .card .articleTitle {
    padding: 25px;
    min-height: 100px;
  }

  .card .articleTitle h3 {
    font-size: 17px;
  }
}

/* =========================================
 パンくずリスト
========================================= */
.breadcrumb {
  padding: 0 20px;
  font-size: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumb ol {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  display: inline;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin: 0 8px;
  color: #999;
}

.breadcrumb a {
  color: #666;
}

/* =========================================
 メインコンテンツエリア
========================================= */
main {
  flex: 1;
  background: var(--back-color);
}

.mainWrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 50px;
  display: grid;
  grid-template-columns: 1fr 26%;
  gap: 30px;
  margin-top: 20px;
}

/* =========================================
 記事エリア
========================================= */
.leftColumn {
}

.singleColumn {
  padding: 40px;
  background: #fff;
  overflow: hidden;
  border-radius: 5px;
}

.heading {
  margin-bottom: 40px;
  text-align: center;
}
.singleColumn .heading {
  text-align: left;
}

.mainTitle {
  font-size: 28px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1a1a;
  padding-bottom: 30px;
  position: relative;
  margin: auto;
}

.mainTitle:after {
  height: 4px;
  content: '';
  width: 40px;
  background: var(--main-color);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.singleColumn .heading .mainTitle:after {
  left: 0;
  transform: translateX(0);
}

.articleTitle {
  /* 追加のスタイルが必要な場合 */
}

/* 記事本文のスタイル */
.singleColumn p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.singleColumn img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
}

.singleColumn a {
  color: var(--main-color);
  text-decoration: underline;
}

/* =========================================
 記事一覧ページ
========================================= */
.card {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
}

.card li {
  background-color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
}

.card li:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card li a {
  display: block;
  color: #333;
}

.card li a:hover {
  color: #333;
}

.card .thumbnail {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
}

.card .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card li:hover .thumbnail img {
  transform: scale(1.05);
}

.card .articleTitle {
  padding: 10px 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.card .articleTitle h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #333;
}

/* ページネーション */
.pagination {
  text-align: center;
  margin: 40px 0;
}

.pagination .current {
  padding: 0 10px;
}

.pagination .pager,
.pagination .first,
.pagination .prev,
.pagination .next {
  padding-right: 15px;
}

.pagination a {
  color: var(--main-color);
  font-weight: bold;
}
/* =========================================
 サイドバー（カテゴリリスト）
========================================= */
.catList {
  background: #fff;
  overflow: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.catList dt {
  background: var(--main-color);
  color: white;
  font-weight: normal;
  padding: 10px 20px;
  margin: 0;
  text-align: center;
}

.catList dd {
}

.catList ul {
  list-style: none;
}

.catList li i {
  margin-right: 8px;
  font-size: 14px;
}

.catList li a {
  color: #333;
  font-size: 15px;
  display: block;
  padding: 15px 20px;
}

/* =========================================
 ページトップボタン
========================================= */
.pageTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.pageTop a {
  display: block;
  width: 50px;
  height: 50px;
  background: var(--main-color);
  border-radius: 50%;
  position: relative;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: white;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  opacity: 0.8;
}

.pageTop a:hover {
  transform: translateY(-3px);
  opacity: 1;
}

/* =========================================
 フッター
========================================= */
footer {
  background: #0001;
  padding: 10px 0;
  text-align: center;
}

footer small {
  font-size: 14px;
}

.catRecommend ul {
  max-width: 1100px;
  margin: 20px auto 30px;
  padding: 0 20px;
  display: grid;
  gap: 20px;
  list-style: none;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.catRecommend ul li {
  /* width: 25%; */
}
.catRecommend ul li a {
  color: #ffffff;
  position: relative;
  display: block;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
  transition: 0.3s;
}
.catRecommend ul li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.catRecommend ul li a img {
  transition: 0.3s;
}
.catRecommend ul li a:hover img {
  transform: scale(1.05);
}

.catRecommend ul li a:before {
  content: '';
  top: 5px;
  left: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border: 1px solid #ffffff;
  position: absolute;
  opacity: 0.7;
  z-index: 1;
  border-radius: 3px;
  box-sizing: border-box;
}
.catRecommend ul .img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  overflow: hidden;
}
.catRecommend ul .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: unset;
}

.catRecommend ul li .title {
  position: absolute;
  bottom: 0;
  font-size: 14px;
  padding: 2px 15px 5px;
  z-index: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  overflow: hidden;
  width: 100%;
  background: #0005;
  text-align: center;
  display: -webkit-box;
}

/* =========================================
 レスポンシブデザイン
========================================= */

@media (max-width: 900px) {
  /* メインコンテンツ */
  .mainWrap {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px 30px;
  }

  .leftColumn {
    order: 1;
  }

  .catList {
    order: 2;
  }
}
/* スマートフォン (768px以下) */
@media (max-width: 768px) {
  /* ヘッダー */
  #headerWrap {
    padding: 15px 20px;
  }

  .headerTitle {
    font-size: 16px;
  }

  .catRecommend ul {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    padding: 0 15px;
    margin: 15px 0 20px;
  }
  .catRecommend ul li {
  }

  .catRecommend ul li .title {
    font-size: 12px;
    padding-inline: 5px;
  }
  .catRecommend ul li a:before {
    display: none;
  }
  /* パンくずリスト */
  .breadcrumb {
    font-size: 13px;
    padding: 0 15px;
  }

  .breadcrumb li:not(:last-child)::after {
    margin: 0 5px;
  }

  .singleColumn {
    padding: 25px 20px;
  }

  .heading {
    margin-bottom: 20px;
  }
  .mainTitle {
    font-size: 22px;
    padding-bottom: 20px;
  }
  .mainTitle:after {
    width: 30px;
  }

  /* 記事一覧ページ */
  .card {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .card .thumbnail {
    height: 180px;
  }

  .card .articleTitle {
    padding: 15px;
    min-height: 80px;
  }

  .card .articleTitle h3 {
    font-size: 15px;
  }

  /* ページネーション */
  .pagination {
    margin: 30px 0 0;
  }

  /* サイドバー */
  .catList dt {
    font-size: 16px;
    padding: 12px 15px;
  }
  .catList li a {
    font-size: 14px;
    padding: 15px;
  }

  /* ページトップボタン */
  .pageTop {
    bottom: 20px;
    right: 20px;
  }

  .pageTop a {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 20px;
  }

  /* フッター */
  footer {
    padding: 20px 0;
  }

  footer small {
    font-size: 12px;
  }
}

/* =========================================
 印刷用スタイル
========================================= */
@media print {
  header,
  .breadcrumb,
  .catList,
  footer,
  .pageTop {
    display: none;
  }

  .mainWrap {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .leftColumn {
    box-shadow: none;
  }

  body {
    background: white;
  }
}
